/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Order.Service;

import Order.Entity.Customer;
import Order.Serializer.OrderSerializer;
import javax.jws.WebService;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;

/**
 *
 * @author Simon Hong
 */
@WebService()
@Stateless()
public class OrderWebService {

    @WebMethod(operationName = "ProcessOrder")
    public String ProcessOrder(@WebParam(name = "request") String request) throws Exception{
        String response = null;
            OrderSerializer serializer = new OrderSerializer();
            response = serializer.update(request);
        return response;
    }
}
